﻿#include "Define.h"
#include "TetrisGame.h"

void main()
{
	TetrisGame* game = new TetrisGame();

	game->Title();				///< Title 화면

	while(!game->isGameover())
	{
		game->Update();			///< Tetris update
		game->Render();			///< Tetris render

		Sleep(game->Speed());		///< Speed 만큼 Sleep을 준다
	}

	game->GameOver();				///< GameOver 화면

	SAFE_DELETE(game);
}